<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="http://localhost:8080/back/css/login_style.css" />
    <title>Login | 库存管理系统</title>


</head>

<body>
<%-- 显示登录错误信息 --%>
<c:if test="${not empty error}">
    <p style="color: red">${error}</p>
</c:if>

<%--<form action="/user/login.do" method="post">--%>
<div class="login-card">
    <h2>库存管理系统欢迎您</h2>
    <h2>Login</h2>
    <h3>Enter your credentials</h3>

    <form  class="login-form" action="/user/login.do" method="post">
        <input type="text" placeholder="Username" name="account">
        <input type="password" placeholder="Password" name="password">
        <br>
        <a href="#">Forget your password</a>
        <br>
        <button type="submit">LOGIN</button>
    </form>
</div>
<%--</form>--%>
<%--<div class="content">
    <form action="../user/login" method="post">
        <div class="form sign-in">
            <h2>库存管理系统欢迎您</h2>
            <label>
                <span>电话号码</span>
                <input type="text" name="user_phone" />
            </label>
            <label>
                <span>密码</span>
                <input type="password" name="user_password"/>
            </label>
            <p class="forgot-pass"><a href="#">忘记密码？</a></p>
            <input type="submit" class="submit" value="登 录">
        </div>
    </form>
    <div class="sub-cont">
        <div class="img">
            <div class="img__text m--up"></div>
            <div class="img__text m--in"></div>
        </div>
    </div>
</div>
<script src="js/script.js"></script>
<div style="text-align: center"></div>--%>
<script src="http://localhost:8080/back/js/script.js"></script>
</body>

</html>